<?php

class Ext_Model_Application extends Ext_Db_Table
{

    protected $_name = 'sys_application';

    protected $_primary = 'application_id';

    protected $_sequence = 'sys_application_seq';
	public function getActiveAsArray()
	{
		$rowset = $this->fetchAll(
			$this->select()
		);
		$result = array();		
		foreach( $rowset as $row ) {
			$result[ $row->application_id ] = $row->name;
		}
		
		return $result; 
	}
}
